import { useParams } from "react-router-dom";
import "./index.less";
import { comDetailImgs } from "./useConfig";
const ComDetail = () => {
  const params = useParams();
  const com = params.product || "product-component-0";
  console.log(params);
  return (
    <div className="com-detail-wrap">
      {comDetailImgs[com].map((item) => (
        <img className="com-detail-img" src={item} alt="配件详情" />
      ))}
    </div>
  );
};
export default ComDetail;
